

<script>
    $("#form_predio").validate({
        submitHandler: function(form) {
            $(form).ajaxSubmit({
                target: "#properties",
            }

            );


        }

    });

</script>
<h1>Ingresar datos del predio</h1>
<?php echo $this->Form->create('Property', array('id' => "form_predio", 'enctype' => 'multipart/form-data', 'type' => 'file', 'url' => array('action' => 'add_files', $property_id, $company_id))); ?>




<table border="0">
    <tbody>
        <tr>
            <td>Adjuntar resolución de adjudicación</td>
            <td><?php echo $this->Form->input('Property.archivo_resolucion', array('label' => 'Adjuntar resolución', 'accept' => 'pdf', 'type' => 'file')); ?></td>
        </tr>
        <tr>
            <td>Adjuntar matrícula inmobiliaria</td>
            <td><?php echo $this->Form->input('Property.archivo_matricula', array('label' => 'Adjuntar matrícula', 'accept' => 'pdf', 'type' => 'file')); ?></td>
        </tr>

        <tr>
            <td></td>
            <td><?php echo $this->Form->hidden('Property.id', array('value' => $property_id, 'accept' => 'pdf', 'type' => 'file')); ?></td>
        </tr>

    </tbody>
</table>




<?php echo $this->Form->end(array('label' => 'Guardar', 'class' => 'submit_button')); ?>

<table width="100%" border="0"  CellSpacing=10  align="center" >
    <tbody>
        <tr>          
            <td><?php echo $this->Ajax->link($this->Html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'Regresar')), array('controller' => 'Properties', 'action' => 'index', $company_id), array('update' => 'properties', 'indicator' => 'loading', 'escape' => false)); ?></td>
        </tr>
    </tbody>
</table>

